import axios from '@/request.js'
export function getquery(page){
    
    return axios.get(`/query?page=${page}`);
  } 
  
  export function createquery(data) {
    return axios.post("/query/create", data);
  }
  
  export function updatequery(id,data) {
  return axios.post(`/query/update?id=${id}`, data);
  }
  
  export function delquery(id){
  return axios.post(`/query/delete/id/${id}`);
  }

  //用户协议


  export function getagreement(page){
    
    return axios.get(`/agreement?page=${page}`);
  } 

  export function updateagreement(id,data) {
    return axios.post(`/agreement/update?id=${id}`, data);
    }